home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / comm / EazyBBS-2.21.lha / Install EazyBBS < prev    next >
AmigaDOS Script File  |  1994-12-12  |  5KB  |  155 lines

  1. .key dest1
  2. .bra {
  3. .ket }
  4.  
  5. FailAt 20
  6. Echo "*N Welcome to *E[1mEazyBBS Mailbox *E[0m!*N"
  7.  
  8. Echo "EazyBBS is very eazy to install.  You just need some assigns,"
  9. Echo "some pathes...  that's it. Okay, it's recommended to read the"
  10. Echo "manual, cause before running a public Mailbox you should configure"
  11. Echo "EazyBBS properly to fit your needs."
  12. Echo ""
  13. Echo "EazyBBS needs write access to the storage medium it was started"
  14. Echo "from. So, if this archive is on a CD-ROM, you must first copy it"
  15. Echo "to a writable area on your harddisk. This installation script will"
  16. Echo "ask you where you want EazyBBS installed. You need ca. 2 MB of free"
  17. Echo "disk space."
  18. Echo ""
  19. Echo "If this unpacked archive of EazyBBS is located on a writable"
  20. Echo "partition of your harddisk, then just click on the *"Ok*" button"
  21. Echo "without selecting any directory."
  22. Echo ""
  23. Echo "If this unpacked archive of EazyBBS is located on a read-only"
  24. Echo "storage medium (eg, CD-ROM), then select a directory on a writable"
  25. Echo "partition of your harddisk. This script will create a sub-directory"
  26. Echo "named *"EazyBBS*" in that directory to install EazyBBS into it."
  27. Echo ""
  28. Echo "To abort the installation process, click on the *"Cancel*" button."
  29. Echo ""
  30.  
  31. Set currdir "`CD`"
  32. Echo "Current directory is: *"$currdir*""
  33.  
  34. RequestFile >T:EazyBBS-Install.${process} TITLE="Choose directory for EazyBBS" POSITIVE="Ok" NEGATIVE="Cancel" DRAWERSONLY
  35. If WARN
  36.     Echo ""
  37.     Echo "Installation of EazyBBS aborted by user."
  38.     Echo "Bye, bye."
  39.     Quit
  40. EndIf
  41.  
  42. Echo "*N---------------------------------------------------------------------*N"
  43.  
  44. CD `Type T:EazyBBS-Install.${process}`
  45. Set destdir "`CD`"
  46. Echo "User selected directory: *"$destdir*""
  47.  
  48. CD "$currdir"
  49.  
  50. If NOT "$currdir" EQ "$destdir"
  51.     ;Echo "New directory !!"
  52.     CD "$destdir"
  53.     MakeDir >NIL: EazyBBS
  54.     CD EazyBBS
  55.     Set destdir "`CD`"
  56.     CD "$currdir"
  57.     Echo ""
  58.     Echo "Copying EazyBBS from: *"$currdir*""
  59.     Echo "                  to: *"$destdir*""
  60.     Echo ""
  61.     ;Copy "$currdir" "$destdir" ALL CLONE QUIET
  62.     If WARN
  63.         ;Delete "$destdir" ALL FORCE QUIET
  64.         Assign "$destdir" REMOVE
  65.         Echo ""
  66.         Echo "Installation (copy) of EazyBBS failed."
  67.         Echo "Bye, bye."
  68.         Quit
  69.     EndIf
  70. Else
  71.     ;Echo "Selected directory is home directory."
  72. EndIf
  73.  
  74. Echo "Doing assigns ..."
  75.  
  76. Echo "And now the eazy part, the assigns.*N"
  77. Echo "Put them into your s:User-Startup or write a small startup-script."
  78. Echo "This installation script will not modify your s:User-Startup file!"
  79. Echo "It's totally on yours.  Okay, here's what you need:"
  80. Echo ""
  81. Echo "        Assign MB:      *"$destdir*""
  82. Echo "        Assign MB_TMP:   MB:TMP"
  83. Echo "        Assign MB_DATA:  MB:Data"
  84. Echo "        Assign MB_USER:  MB:User"
  85. Echo "        Assign MB_BOARD: MB:Board"
  86. Echo "        Assign MB_FILES: MB:Files"
  87.  
  88. Assign MB:      "$destdir"
  89.  
  90. MakeDir MB:TMP MB:Board MB:Files MB:User MB:Intern >NIL:
  91. Assign MB_TMP:   MB:TMP
  92. Assign MB_DATA:  MB:Data
  93. Assign MB_USER:  MB:User
  94. Assign MB_BOARD: MB:Board
  95. Assign MB_FILES: MB:Files
  96.  
  97. Ask "*NPress [RETURN] for more!"
  98.  
  99. Echo "*NAnd even more assigns. Some add-ons ...*N"
  100. Echo "        Assign LIBS: MB:Libs ADD"
  101.  
  102. Assign LIBS: MB:Libs ADD
  103.  
  104. Echo "*NNo big deal, eh?   You need the EazyBBS binaries in your DOS"
  105. Echo "search path.  If you want to launch EazyBBS binaries from other"
  106. Echo "programs (Cron, ToolManager etc.) be sure that you add the new"
  107. Echo "path early in your s:User-Startup before any other programs are"
  108. Echo "started.  That's important, believe me ...*N"
  109. Echo "        Path MB:C ADD"
  110.  
  111. Path MB:C ADD
  112.  
  113. Echo "*NYou'll need a large stack.  Sorry for that, but I love to"
  114. Echo "make use of the stack in my programs.  50000 bytes are enough.*N"
  115. Echo "        Stack 50000"
  116.  
  117. Stack 50000
  118.  
  119. Ask "*NPress [RETURN] for more!"
  120.  
  121. If NOT EXISTS libs:xprzmodem.library
  122.     Echo "*NOh shit, there's no xprzmodem.library in your libs: directory."
  123.     Echo "EazyBBS needs xprzmodem.library 2.0+ (e.g. from Fred Fish #236)"
  124.     Echo "Get it... or you will run into problems!"
  125.     ;Quit
  126. EndIf
  127.  
  128. Echo "*NBefore you start EazyBBS you should edit the configuration files"
  129. Echo "in the directory *"MB_DATA:Configuration*". The file names represent"
  130. Echo "the numbers of the BBS ports. Port 1 is pre-installed for usage with"
  131. Echo "a modem, port 2 is pre-installed for local usage.*N"
  132.  
  133. Echo "*NNow, we're finished with the installation."
  134. Echo "Thank you. Bye, bye.*N"
  135.  
  136. Quit
  137.  
  138. ; comment
  139.  
  140. echo "*e[33mEazyBBS*e[0m needs some public domain programs in"
  141. echo "your c: directory to give you best results:"
  142. echo " - Arc 0.23"
  143. echo " - TArc                   (Turbo-Arc)"
  144. echo " - Zoo"
  145. echo " - LZ/LhArc"
  146. echo " - UnZip 3.0              (special version)"
  147. echo " - DMS/TestDMS/ViewDMS"
  148. echo " - GIFhdr"
  149. echo " - IFFhdr"
  150. echo " - WarpCheck"
  151. echo " - ZoomCheck"
  152. echo " - Crc                    (from SKsh)"
  153. echo " - Run                    (Commodore's Original Version)"
  154.  
  155.